package com.easpeed.elevator.event;

import java.util.ArrayList;
import java.util.List;

public class SendOrderEvent {
    private final int[] dvs;

    public SendOrderEvent(float[] dvs,float miu,int offset) {
        this.dvs = new int[dvs.length];
        for(int i=0;i<dvs.length;i++){
            this.dvs[i] = (int)(Math.max(Math.abs((dvs[i] * miu)) - offset,0));
        }
    }

    public SendOrderEvent(int[] dvs) {
        this.dvs = dvs;
    }

    public int[] getDvs() {
        return dvs;
    }

}
